package com.demo.controller;

import com.demo.base.Result;
import com.demo.entity.DroolsRule;
import com.demo.entity.Order;
import com.demo.service.IDecisionLoadRuleService;
import com.demo.service.IDroolsRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * @Classname DroolsRuleController
 * @Description 规则加载测试
 * @Date 2023/11/23 12:04
 * @Created by Leo825
 */

@RequestMapping("/testnode")
@Controller
@Slf4j
public class DecisionNodeController {
    @Autowired
    private IDecisionLoadRuleService decisionLoadRuleService;


    //TODO 需要将样例数据插入到数据库，并进行测试，有时间在写
    @ResponseBody
    @RequestMapping("/getRuleNode/{decisionId}")
    public Result getRuleNode(@PathVariable Long decisionId) {

        return new Result().ok("{}");
    }
}
